package com.shawn.springboot.integeration.common.exception;

/**
 * @author zhangjian
 * @description: 业务异常
 * @date 2022/9/4
 */
public class BusinessException extends RuntimeException{

    protected final String message;

    public BusinessException(String message) {
        this.message = message;
    }

    public BusinessException(String message,Throwable e) {
        super(message,e);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
